home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
appsrcs.zip
/
MORSETUP.ZIP
/
APPSAVE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-05-07
|
792b
|
37 lines
#define STRICT
#include <windows.h>
#include <windowsx.h>
#include <string.h>
#include "morsetup.h"
/*-------------------------------------------------------------------------*/
BOOL WINAPI SaveDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
switch(message)
{
case WM_INITDIALOG:
strcpy(szBuffer, "Save [");
strcat(szBuffer, AppSystem.SectionName);
strcat(szBuffer, "] Settings?");
SetWindowText(GetDlgItem(hDlg, IDSAVE_TEXT), szBuffer);
return TRUE;
case WM_COMMAND:
switch(wParam)
{
case IDSAVE_OK:
EndDialog(hDlg, 0);
IniSave();
bSave = FALSE;
return TRUE;
case IDSAVE_NO:
EndDialog(hDlg, 0);
return TRUE;
}
break;
}
return FALSE;
}